package com.cq.hd.order.controller;

import com.cq.hd.common.response.Result;
import com.cq.hd.common.response.ResultGenerator;
import com.cq.hd.order.api.TbOrderRefundApi;
import com.cq.hd.order.service.TbOrderRefundService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 订单退款表 前端控制器
 * </p>
 *
 * @author mYunYu
 * @since 2024-01-17
 */
@RestController
public class TbOrderRefundController implements TbOrderRefundApi {

    @Resource
    private TbOrderRefundService orderRefundService;

    @Override
    public Result<Boolean> scanStepPriceRefundTask() {
        orderRefundService.scanStepPriceRefundTask();
        return ResultGenerator.success();
    }

    @Override
    public Result<Void> scanWaitRefundTask() {
        orderRefundService.scanWaitRefundTask();
        return ResultGenerator.success();
    }
}
